package com.sn.system.tangs.tag;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.components.Component;
import org.apache.struts2.views.jsp.ui.AbstractUITag;

import com.opensymphony.xwork2.util.ValueStack;

public class FieldErrorTag extends AbstractUITag{

	private String successTopics;
	private String okButtonId;
	
	/**
     * パラメータを取りする
     */
    protected void populateParams() {
        super.populateParams();

        FieldError fe = (FieldError)component;
        fe.setSuccessTopics(successTopics);
        fe.setOkButtonId(okButtonId);

    }

	public Component getBean(ValueStack stack, HttpServletRequest request,
			HttpServletResponse response) {
		return new FieldError(stack, request, response);
	}

	public String getSuccessTopics() {
		return successTopics;
	}

	public void setSuccessTopics(String successTopics) {
		this.successTopics = successTopics;
	}

	public String getOkButtonId() {
		return okButtonId;
	}

	public void setOkButtonId(String okButtonId) {
		this.okButtonId = okButtonId;
	}
	
	
}
